package com.furongji.education.service;

import com.furongji.education.domain.po.Order;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author furongji
 * @since 2025-05-29
 */
public interface OrderService extends IService<Order> {

    String createOrder(String token, String courseId);

    boolean isPurchaseCourse(String userId, String courseId);

    Integer orderCount(String date);

    void cancelOrder(String orderId);
}
